const express = require('express');
const CourseController = require('../controllers/CourseController');
const { authenticateToken } = require('../middleware/auth');

const router = express.Router();

// 课程相关路由
router.get('/', CourseController.getCourses);
router.get('/recommended', CourseController.getRecommendedCourses);
router.get('/hot', CourseController.getHotCourses);
router.get('/my-courses', authenticateToken, CourseController.getMyCourses);
router.get('/:id', CourseController.getCourseDetail);

module.exports = router; 